﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace FlashCards.Dto
{
    [DataContract]
    public class Flashcard
    {
        public Flashcard()
        {
            DateModified = DateTime.Now;
        }

        [DataMember]
        public int Id { get; set; }
        [DataMember]
        public FlashcardPart Term { get; set; }
        [DataMember]
        public FlashcardPart Definition { get; set; }
        [DataMember]
        public DateTime DateModified { get; set; }
        [DataMember]
        public int FlashcardSetId { get; set; }
    } 
}
